package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "taohua_like")
public class TaoHuaLike implements Serializable {
    private ObjectId id; //主键id
    private Long userId; //用户id，自己

    private Long publishId; //发送语音用户id，对方

    private Long created; //创建时间
    private String soundUrl; //语音URL
}
